﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MTGScore
{
    public class HistoryViewModel : INotifyPropertyChanged
    {
        private string _pv1;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string pv1
        {
            get
            {
                return _pv1;
            }
            set
            {
                if (value != _pv1)
                {
                    _pv1 = value;
                    NotifyPropertyChanged("pv1");
                }
            }
        }

        private string _pv2;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string pv2
        {
            get
            {
                return _pv2;
            }
            set
            {
                if (value != _pv2)
                {
                    _pv2 = value;
                    NotifyPropertyChanged("pv2");
                }
            }
        }

        private string _infect1;
        public string infect1
        {
            get
            {
                return _infect1;
            }
            set
            {
                if (value != _infect1)
                {
                    _infect1 = value;
                    NotifyPropertyChanged("infect1");
                }
            }
        }

        private string _infect2;
        public string infect2
        {
            get
            {
                return _infect2;
            }
            set
            {
                if (value != _infect2)
                {
                    _infect2 = value;
                    NotifyPropertyChanged("infect2");
                }
            }
        }

        private string _timespan;
        public string timespan
        {
            get
            {
                return _timespan;
            }
            set
            {
                if (value != _timespan)
                {
                    _timespan = value;
                    NotifyPropertyChanged("timespan");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}